package org.mybatis3.test5;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Test4 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Dog d1=(Dog) context.getBean("dog3");

        System.out.println(d1.getWeight()+d1.getName());
//        System.out.println(d1.getName());
    }
}

